<template>
  <div id="app">
      <button @click="open">点击</button>
      <button @click="success">成功</button>
      <button @click="fail">失败</button>
  </div>
</template>

<script>
export default {
    methods:{
        open(){
        this.$message('点击信息')
        },
        success(){
            this.$message({
                message:'成功',
                type:'success'
            })
        },
        fail(){
            this.$message({
                message:'失败',
                type:'waring'
            })
        }
    }
}
</script>

<style lang="scss">
#app {
  font-family: Avenir, Helvetica, Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-align: center;
  color: #2c3e50;
  display:flex;
  flex-direction: column;
  text-align: center;
  button{
    width: 100px;
    height: 40px;
    border-radius: 10px;
    margin: 10px auto ;
    cursor:pointer;
 outline: none;

  }
}

#nav {
  padding: 30px;

  a {
    font-weight: bold;
    color: #2c3e50;

    &.router-link-exact-active {
      color: #42b983;
    }
  }
}
</style>
